Skip to content

Conversation

@sbothma
Copy link

@sbothma sbothma commented Dec 22, 2024

The Process table is unusable when the node is running many processes.

  • avoid keeping process info for all processes in memory
  • avoid .sort, .take, and .map on extremely long lists
  • remains fast for hundreds of thousands of processes
  • only slow (3s) showing 5000 processes out of hundreds of thousands

 - avoid keeping process info for all processes in memory
 - avoid .sort, .take, and .map on extremely long lists
 - remains fast for hundreds of thousands of processes
 - only slow (3s) showing 5000 processes out of hundreds of thousands
@josevalim
Copy link
Member

Thank you for the PR @sbothma! Can you please look into failing tests? I also wonder if we should add Enum.take_sort to Elixir... although that's a separate discussion. :)

@sbothma sbothma marked this pull request as draft December 23, 2024 05:27
@sbothma
Copy link
Author

sbothma commented Dec 23, 2024

This is still hitting a bottleneck somewhere around 200 000 processes. I'll split out the take_sort implementation. My goal here is to be able to have the Process table respond in less than a second (the minimum auto update rate). At least up to the default process limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants